package com.example.common;

import com.example.common.slice.MainAbilitySlice;
import ohos.aafwk.ability.fraction.FractionAbility;
import ohos.aafwk.content.Intent;
import ohos.agp.components.Component;
import ohos.agp.utils.Color;
import ohos.agp.window.service.Window;

public class MainAbility extends FractionAbility {
//     private  String[] str={"课程","视频"};
//    private StackLayout stackLayout;
    @Override
    public void onStart(Intent intent) {
        Window window = getWindow();
        window.setStatusBarColor(Color.BLACK.getValue());
        window.setStatusBarVisibility(Component.VISIBLE);
        super.onStart(intent);
        super.setMainRoute(MainAbilitySlice.class.getName());
    }
}
